﻿using System.Linq;
using ApprovalTests.Reporters;
using ApprovalUtilities.Utilities;

namespace OtdrDataFormat.UnitTests
{
  /*
    I M P O R T A N T ! ! !
    
    this file is not compiling in SharedCommons assembly because 
    it requires full profile of .net. 
    
    it's included into concrete unit tests projects as link instead!!
 */
  public class AraxisReporter : GenericDiffReporter
  {
    private static readonly string PATH =
      DotNet4Utilities.GetPathInProgramFilesX86(@"Araxis\Araxis Merge\Merge.exe");
    public static readonly AraxisReporter INSTANCE = new AraxisReporter();

    static AraxisReporter()
    {
    }

    public AraxisReporter()
      : base(PATH, "\"{0}\" \"{1}\"",
             "Could not find Araxis at {0}, please install it".FormatWith(
               PATH, TEXT_FILE_TYPES.Concat(TortoiseImageDiffReporter.IMAGE_FILE_TYPES).ToArray()))
    {
    }
  }
}